﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Data;

namespace AdminModule.Converters
{
    public class AnswerLogImagesConverter : IValueConverter
    {

        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            string operationName = value.ToString();
            switch (operationName)
            {
                case "Insert":
                    return "/AdminModule;Component/Images/Add_16.png";
                case "Delete":
                    return "/AdminModule;Component/Images/Delete_16.png";
                case "Update":
                    return "/AdminModule;Component/Images/Modify_16.png";
            }
            return string.Empty;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return value;
        }

        #endregion
    }
}
